{include file="buy/header.tpl"}


<!-- 头部// -->


<!-- start: Content -->
<div id="content" class="span12">


<div class="row-fluid">


<div class="box span12"><!-- Default panel contents -->



<div class="box-content">{include file="buy/top.tpl"}

<div class="alert alert-error">
拍下后1小时内 取消或改单 请致电0573-82696190; 一天内订单总额未满3000元不会审核,将合并到下次的订单中。
</div>

<table class="table table-hover">
	<tr class=title>
		<th width="8%">状态</th>
		<th  width="12%">下单时间</th>
		<th width="15%">订单编号</th>
		<th width="18%">订单名称</th>
		<th width="10%">件数</th>
		
		<th width="8%">总金额</th>
		
		<th width="20%">备注</th>
	    <th width="5%">订单部</th>
		
		<th width="5%">操作</th>
	</tr>




	{foreach from=$order item=l}
	<tr>
		<td  id="zt_{$news[l].orderno}">{if $l.status=="等待审核"}<span
			class="label label-warning">{$l.status}</span>{else if
		$l.status=="关闭"}<span class="label label-default">{$l.status}</span>{else}<span
			class="label label-success">{$l.status}</span>{/if}</td>
				<td>{$l.add_time|wtime}</td>
		
		<td>{$l.orderno}</td>

		<td >{$l.name}</td>
		<td >{$l.num}</td>
		<td ><a href="#">{$l.money}</td>
  
		<td >{$l.remark}</td>
<td >{$l.action_name}</td>
<td ><a href="javascript:detail('{$l.orderno}')">查看</a></td>
	</tr>
	{/foreach}

</table>

<div class="pagination pagination-centered">
<ul id="pager"></ul>
</div>

</div>




</div>



<script src="./static/public/layer/layer.min.js"></script> {literal} <script
	type='text/javascript'>

function detail(sno){
$.layer({
    type: 2,
    shadeClose: true,
    title: false,
    closeBtn: [0, true],
    shade: [0.3, '#000'],
    border: [0],
    offset: ['20px',''],
    area: ['820px', ($(window).height() - 50) +'px'],
    iframe: {src: './index.php?buyorderinfo/detail/?sno='+sno,
        scrolling: 'yes'
         }
}) 
}

var options = {
		currentPage: {/literal}{$num.current}{literal},
		totalPages: {/literal}{$num.page}{literal},
		numberOfPages:5,
		bootstrapMajorVersion:3,
		pageUrl: function(type, page, current){
		    return './index.php?buyorder/order/?p='+page;
		}
		}
		$('#pager').bootstrapPaginator(options);


</script> {/literal} 